<div class="span-24">
  <blockquote class="top bottom">
    <h2 class="large alt huge bottom">
      Welcome to Grouper. You'll need an account to participate.
      <%= link_to_function "Why?", "show_header_explanation(this)", :class => "tiny caps show_why" %>
    </h2>
    <p id="why_explanation" class="alt huge bottom explanation" style="display:none;">
      Well, we need some way to save the work you do here.<br />
      We promise not to spam you, ever.
      <%= link_to_function "Ok.", "hide_header_explanation(this)", :class => "tiny caps hide_why" %>
    </p>
  </blockquote>
</div>
<div id="signup_or_login" class="span-24">
  <div class="span-11">
      <%- labeled_form_for @user do |u| -%>
        <fieldset>
          <h1 class="bottom_rule">Sign up</h1>
        
          <p>
            <%= u.label :email, :class => "larger title" %><br />
            <%= u.text_field :email, :class => "title span-10" %>
          </p>

          <p>
            <%= u.label :password, :class => "larger title" %><br />
            <%= u.password_field :password, :class => "title span-10" %>
          </p>

          <p>
            <%= u.label :password_confirmation, :class => "larger title" %><br />
            <%= u.password_field :password_confirmation, :class => "title span-10" %>
          </p>
        
          <hr class="space" />
          <button type="submit" class="larger positive button">
            <%= image_tag "accept.png", :alt => "" %>  Sign up
          </button>
        </fieldset>
      <%- end -%>
  </div>

  <div class="push-2 span-11 last">
    <%- form_tag session_path, :id => "new_session" do -%>
      <fieldset>
        <h1 class="bottom_rule">Log in</h1>
      
        <%- unless flash[:login_error].blank? -%>
          <span class="form_error"><label class="larger title"><%= flash[:login_error] %></label></span>
        <% end -%>
      
        <p>
          <label for="email" class="larger">Email</label><br />
          <%= text_field_tag 'email', params[:email], :class => 'title span-10' %>
        </p>
      
        <p>
          <label for="password" class="larger">Password</label><br />
          <%= password_field_tag 'password', nil, :class => 'title span-10' %>
        </p>
      
        <p>
          <%= check_box_tag 'remember_me', '1', params[:remember_me], :class => "larger" %>
          <label for="remember_me" class="larger">Remember me for 2 weeks</label>
        </p>
      
        <hr class="space" />
        <button type="submit" class="larger positive button">
          <%= image_tag "key_go.png", :alt => "" %>  Log in
        </button>
      </fieldset>
    <% end -%>
  </div>
</div>
  